Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SNAP-1053][SPARK-16922] [SPARK-17211] [SQL] make the address of values portable… #13

Closed
wants to merge 1 commit into from

Conversation

rishitesh
Copy link

@rishitesh rishitesh commented Sep 26, 2016

cherry picked the fix from Spark master. rev : f7e26d7

What changes were proposed in this pull request?

In LongToUnsafeRowMap, we use offset of a value as pointer, stored in a array also in the page for chained values. The offset is not portable, because Platform.LONG_ARRAY_OFFSET will be different with different JVM Heap size, then the deserialized LongToUnsafeRowMap will be corrupt.

This PR will change to use portable address (without Platform.LONG_ARRAY_OFFSET).

How was this patch tested?

Added a test case with random generated keys, to improve the coverage. But this test is not a regression test, that could require a Spark cluster that have at least 32G heap in driver or executor.

Author: Davies Liu [email protected]

Closes apache#14927 from davies/longmap.

… in LongToUnsafeRowMap

## What changes were proposed in this pull request?

In LongToUnsafeRowMap, we use offset of a value as pointer, stored in a array also in the page for chained values. The offset is not portable, because Platform.LONG_ARRAY_OFFSET will be different with different JVM Heap size, then the deserialized LongToUnsafeRowMap will be corrupt.

This PR will change to use portable address (without Platform.LONG_ARRAY_OFFSET).

## How was this patch tested?

Added a test case with random generated keys, to improve the coverage. But this test is not a regression test, that could require a Spark cluster that have at least 32G heap in driver or executor.

Author: Davies Liu <[email protected]>

Closes apache#14927 from davies/longmap.
@rishitesh rishitesh changed the title [SPARK-16922] [SPARK-17211] [SQL] make the address of values portable… [SNAP-1053][SPARK-16922] [SPARK-17211] [SQL] make the address of values portable… Sep 26, 2016
Copy link

@hbhanawat hbhanawat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@rishitesh
Copy link
Author

Not needed as this change is part of Spark 2.0.1 merge.

@rishitesh rishitesh closed this Oct 27, 2016
@rishitesh rishitesh deleted the SNAP-1053 branch October 27, 2016 07:09
ashetkar pushed a commit that referenced this pull request Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants